<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Dosen</title>
</head>

<body>
<?
switch($_GET[act]){

default:
?>
<table width="657" border="0">
   <tr>
    <td width="48">&nbsp;</td>
    <td width="593">Selamat Datang Di Laman Dosen</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>Pengumuman<hr /></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td valign="top"><? $sql="select * from pengumuman order by id_pengumuman desc limit 10";
	 	$query=@mysql_query($sql);
		echo '<ul class=judul>';
		while ($r=@mysql_fetch_array($query)){
		
		echo '<li><a href=dasbord.php?mod=home&act=detailpengumuman&id='.$r['id_pengumuman'].'>'.$r['judul'].'</a>'.'</li>';
		}
	 ?>
      </ul>
<span class="arsip"><a href="dasbord.php?mod=arsip">:: Arsip </a></span>      
      </td>
  </tr>
</table>
<? break;

case "detailpengumuman":
echo '<div class=lay_pengumuman>';
 $sql="select * from pengumuman where id_pengumuman=$_GET[id]";
		$query=mysql_query($sql);
		$r=mysql_fetch_array($query);
		$tgl= tgl_indo($r['date']);
echo "<span class=tgl_pengumuman >".$tgl."</span> <br /><br />";
echo '<center>'.$r['judul'].'<br /></center>';
echo $r['isi'];
echo '</div>';
break; ?>

<? } ?>



</body>
</html>
